#!/bin/sh
git pull
mvn clean package
rm -rf /usr/local/tomcat/webapps/client
unzip /home/wwwroot/java/boyle-client/target/boyle-client.war -d /usr/local/tomcat/webapps/client
rm -rf /home/resource/client/angular
cp -r /usr/local/tomcat/webapps/client/angular /home/resource/client/angular 
/usr/local/tomcat/bin/shutdown.sh
/usr/local/tomcat/bin/startup.sh
tail -f /usr/local/tomcat/logs/catalina.out
